package cn.buk.tms.dao;

import cn.buk.tms.entity.misc.SmsDetail;
import cn.buk.tms.sc.SearchSmsCriteria;

import java.util.List;

public interface SmsDao {

    int createSmsDetail(SmsDetail smsDetail);

    int updateSmsStatus(int id, String sendStatus, String msgId);

    List<SmsDetail> searchSmsDetails(int enterpriseId, SearchSmsCriteria sc);

    /**
     * 根据订单号查找相关短信
     * @param enterpriseId
     * @param orderNo
     * @return
     */
    List<SmsDetail> searchSmsByOrderNo(int enterpriseId, String orderNo);


    /** 保存收到的短信
     * @param enterpriseId
     * @param mobile
     * @param content
     * @param orderNo
     * @return
     */
    int saveReceivedSms(int enterpriseId, String mobile, String content, String orderNo);
}